package com.threeti.mecool.core.domain.model.basicdata.biz;

import com.threeti.mecool.shared.util.AbstractTreeNode;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/** 通路类别 */
@Embeddable
public class ChannelCategory extends AbstractTreeNode<String> {

    public ChannelCategory(String code, String name) {
        super(code, name);
    }

    @Override
    @Column(name="CHANNEL_CAT_CODE")
    public String getId() {
        return super.getId();
    }

    @Override
    @Column(name="CHANNEL_CAT_NAME")
    public String getName() {
        return super.getName();
    }

    @Override
    public String toString() {
        return "ChannelCategory [code=" + getId() + ", name=" + getName() + "]";
    }

    ChannelCategory() {
    }

}
